package strategy;

/**
 * @Author shenhan
 * @Date: 2020/4/12 17:21
 * @Description:
 */
public class ToyDuck extends Duck {
    @Override
    void display() {
        System.out.println("玩具鸭");
    }

    @Override
    void quack() {
        System.out.println("玩具鸭子不会叫");
    }

    @Override
    void swim() {
        System.out.println("玩具鸭子不会游泳");
    }

    @Override
    void fly() {
        System.out.println("玩具鸭子不会飞");
    }

}
